Fixing problem with template edit.