fixed issue with adding to tpl