fix error with datepicker and creating a new event