deal with corrupt data in repo history