Fix Matrix.set