minor bugs fixed for timetable util