Tweak Infinity check.