wrong reference to pathToRegexp in arrays