fix sws_scale