Fixed resizing scale bug