fixed errors in comparator nodes