fixed page that incorrectly computed range of last page