Fixed little bug in event controller.