Calender edit event bug fix