fixed typo in makePlan