Fix a bug on getTransformMatrix.