Make sure to wrap the event created using new Event.