small fix to tpl_get