bug fixes to event edit