Fix bug and test in Event.