removed unnecessary context change in trigger_user_event