fixing the scale bug