Clamp the ratio in [0,1] for safety