fixed an issue with scaling