fix in pLSA, matrix to flat map code, data