Fix for event dispatching on regions and composite states