fix matrix value data