Fixed compare() routine.