fixed populatematrix