BUGFIX: wrong logic level was used to send events.