Fixed bugs occured during templates and helpers editing.