Bug fixes

This will solve the bug pertaining to the creation and modification of event.