fixing setUnitScale