Fixed view refresh issue in calendar.