fix max paths filter.