fix rug when some values will be clipped