fixed a couple of bugs in paged.allocator.
fixed a couple of bugs in paged.allocator.

mario-campos/clay,aep/clay,jckarter/clay,jckarter/clay,jckarter/clay,aep/clay,aep/clay,mario-campos/clay,aep/clay,aep/clay,iamrekcah/clay,aep/clay,iamrekcah/clay,jckarter/clay,mario-campos/clay,jckarter/clay,iamrekcah/clay,mario-campos/clay,iamrekcah/clay,iamrekcah/clay,jckarter/clay,mario-campos/clay