bug fix auto scale