fix for events which fire on the top level of the virtual dom