fix scale bug