handle some repo corruption