fixed bug in edit template