corrected some bugs in DataAnalysis