fix bug in timetable.