Here is an exercise of the book commutative algebra by Atiyah and MacDonald (Ex 2.13): Let $ f : A \rightarrow B$ be ring homomorphism and $N$ be a $B$ module. Regarding $N$ as a $A$ module by restricting the scalars, and form the $B$ module $N_{B} = B \otimes N$ (tensor over $A$). Then the homomorphism $g : N \rightarrow N_{B}$ which maps $y$ to $ 1 \otimes y $ is injective and $g(N)$ is a direct summand of $N_{B}$. i.e. $N_{B} = L \oplus g(N)$ for some $B$ module $L$.
I think I am not understanding this statement in the following way: let's take $B$ to be any ring containing a field $k$, let's $N$ be any $B$ module, by restricting the scalars to $k$, it becomes $k$ module hence free module therefore projective, then $N_{B}$ becomes projective $B$-module therefore any direct summand is projective which implies that $N$ is projective $B$ module, which is completely absurd because $N$ was any $B$ module. Where is the flaw? Any help would be great.