fixed a bug that occured when creating an event