fix issue when comparing large numbers