Fix automatic repair loop in windows 10