bugfix sw & sh clamp