Fixed bug in dataStat.