Fixed the day/week view problem