heap fix