Fix wrong page iteration