fixes bad data