Fixed bug in Event constructor