Fix printMatrix