fixed bug in edit event trigger