Fixed incorrect variable for Total Pages