Fix bug in planner - was adding remainders back to supply in the wrong place in the loop