Fixed another bug in compute_new_schedule.js (see lines 50-52)