sgmatrix fail case 1