isInfinite fix