fixed a bug that prevented edit event form pre-filling