replacing corrupted files