finally fixed the data anomaly