fix matrix3d

fix matrix3d