Reversed changes to previousPage, my bad