fix compareTo logic