fix regex (and other) queries in path field