Prevent infinite loop in EventDispatcher