fix the template method.tpl