Fixed outdated doEvents from EventManager