Fix total pages when total results is divisible by results per page