removing commented part
Fixing bad cast for date during event creation