Fixed: Small bug in the event system.