fix warning in path.js