fixing renderin bug when hiding showing calendars