Avoid calculating log if we would then clamp it to 0