fix key dupe in template tracking