fixes calendar render bug