Fix #282 Bug with compareTo in 3.5.1