Fix missing clamping.