Corrects order of states in makeSmoothPath()