Fix bin-heap