fixing bad data