Make Repair() idempotent and lowercase