Fixed page numberin bug if user chose page out of range