Fixed small bug on page iteration