I'm definitely confused. I'm looking at the code and I don't see anyplace that uses another Tpl property (in fact, it appears that the &tpl property is ignored).
Can you PM me and paste the entire code of the SiteAtoX snippet in the message? I'm curious to see what you have.