fix a path.resolve bug