Fix concensual matrix generation.