fixDataInconsistencies