Fixed not clearing X errors for data_stat and data_tot