Fix bugs in event creation, but event is not being created?