Changed JOINT_MATRIX to JOINTMATRIX