Fixed a scaling bug.