protection against bad page number