fix heap handle
Merge pull request #15 from segmentio/fix/heap-handle

fix heap handle