fixed bug in makePlan