fix the bug of the event edit page