compareTo fix