Reshape the coefficients to avoid a crash when X has just one variable. Fixes issue 3.