Let's suppose that I am given a pencil generated by the vector fields $X$ and $Y$ in $\mathbb{C}^2$, $\{ Z_\lambda \}_{\lambda\in\mathbb{P}^1}$, that is, $$ Z_\lambda = X + \lambda Y $$
Assume that $X$ and $Y$ are non-singular except in the origin $(0,0)$.
By Bertini's Theorem, does this mean that for a generic $\lambda \neq 0,\infty $, the generic element of the pencil $Z_\lambda$ is non-singular except in the origin? If not, can someone please explain me what I am missing?