corrected bug in updateEvent