Fix offset in transform