fix heap