fixed pathRegexp