fix bug in matrixresult table