Fix a problem with last page and round division