Solved error with lessons maked consecutive by timetables code when actually there is a gap between time slots!