fix heap dimensions