Some preventions in case of data inconsistency.