Fixed typo in SetScale function