Fixed scaling errors