try to fix repos that get in a bad state