scale bugfixing