undo bad repair