remove offset scale from matrix