Bug fic in computation of cartresian path