fix for updating the event, should be refined more in the future