Fixes a problem in calculating the build schedule.