Let $R$ and $S$ be local rings with the maximal ideals $M$ and $N$, respectively. Assume that $R\subset S$ and that $S$ is a finitely generated $R$-module. If there exists a proper ideal $I$ of $R$ such that $I=IS \cap R$ and the canonical image of $R/I$ in $S/IS$ equals $S/IS$, then prove that $R=S$.
I think that I need to do something with Nakayama's lemma but I couldn't get anything so far. Any help would be great.