repair header dir