Fixed problems in converting to paths

There were a few glitches that cropped up from the toPath function, so
I fixed that