scale bugfix