Fixed scaling bug.