Fix PR iteration

It was not iterating through pages