Corrected maximum page number

I had it as ceil before and don't know when I changed it to floor.