Fixed the event loop mess.