fix default to infinity bug