fix loading the wrong tpl file