bugfix for page when total < list length