fix modify_template lost