Fix view query pagination.