Fixed a scaling problem

With scales (and maybe element widgets too).