fixed a problem with falsy values in the event trigger