fixed problem when scrolling up and down on the timetable