fix to edit event template