Dont allow paging to go beyond limits.