Fix "undefined variable" leading to errors when swapping timeslots