Let $f : X\to Y$ be a dominant morphism of integral algebraic varieties over $\mathbb C$. Suppose $[K(X): K(Y)]=n$. Then there exists a dense open subset $U$ of $Y$ such that $f^{-1}(y)$ consists in $n$ points for all $y\in U$.
This is a property I quoted from answer Number of points in the fibre and the degree of field extension. To prove the property, the author reduced it to the affine case, i.e. $X=\mathrm{Spec}\,B,Y=\mathrm{Spec}\,A$ for some algebras $A,B$ over $\mathbb{C}$. Why is it possible? In my view, the author choosed some open affine subsets $V$ of $Y$, but how to make sure $f^{-1}(V)$ is also affine?
Let me compile my comments in to an answer. One doesn't need to have $f^{-1}(V)$ affine in this reduction: the difference $f^{-1}(V)\setminus U$ is a proper closed subvariety, so its image under $f$ will be contained in a lower-dimensional subvariety of $V$ and therefore on a dense open subset of $V$ we have the same fibers.