clamp max wrong var name