Fixed bug in Eventmanager. I'm stupid -.-