fix scale function