fix multi scale bug