Fixed bugs in Event.