matrix setting bug