Fixed send_event (issue #3153)