Fix menu close event.