fix compareTo