fix issue where on the last page exceptions would still be thrown due to a typo