fixed bad setvalue clamping