Remove another math.Inf call