Fix dayClick error in fullcalendar.