Corrected bug for nrhs==1.