Only repair what's neccessary