Fixed bug with scale and rotated pivot