Fix compare to return positive values