Corrected TypeError in scaleTo() method.