fixed HeapPage problem