fix project_template bugs