heap: finally caught that POS bug