BUG: account for errors in ridge/lasso