fixed a bug in "Math::isinf"