Fixing update_event_complete function