bug fixed for calendar