integration inifite limits fix

fixes #8171
shouldn't you revert this code after is_zero modifications?