I think you always want to use ```a["foo"]``` instead of ```ta["foo"]```, as you're using data from the old attributes (not from the attributes of the template)