fix view method for matrix