if requested page doesn't exist, use last page