fix datacomparator bug