fix scale and rotate