fixed heap lib