bug fix: pagination was wrong when filtering with the map