fix comparator issue.