fixed error with event modal