Fixed bug with Next button on pagination

Added .ceil to round up