fix a bug of basicStatistics