Bug fixed on result matrix, shuffle