fix bug on matrix of singles and matrix of aggregates generation