repairing damage from bad commit