Fixing bad data problems