fix a scale bug