fixed event processing.