fixed issue with Object type for events.