fix matrix Object bug