Fix bug that made skip a page