Fixed event dispatching.