Update path.class.js

Fix for path position, i'm sure is not the good way, but looks like it works.