Fix an issue in page allocation.