fixing corruptions