fix: isFinite issue