fix matrix order multiplication in transform.apply