Fix bug in comparing certain numbers.