fixed repairHeading