UI: Fix dispatching of events to multiple listeners.