set_template_file() fixed