fixed scale bug