Fixed incorrect arithmetic comparisons.