fix the scale bug