Update path.class.js

Fix for position of path both in path groupd and single path.
Just a work around, real solution is somewhere else.