fix timetable creation