minor fix of heap