Fixed a scaling bug