Fixed Inf bug