fix end page case typo