fix matrix animate bug