fixed scale refresh bug