small heap fix