Problem:
Suppose $R$ is a commutative ring and $f_1, f_2 \in R$ generate the unit ideal. Let $M$ be an $R$-module, and assume we are given elements $$m_i \in M[f_i^{-1}]$$ such that $$m_1 = m_2 \in M[f_1^{-1}f_2^{-1}].$$
Show that there exists $m \in M$ so that $m = m_i$ when you localize at $f_i$.
My attempt:
We write $m_i \in M[f_i^{-1}]$ as a fraction $$m_i = \frac{\tilde{m_i}}{f_i^{e_i}},$$ and the compatibility assumption becomes $$(f_1f_2)^N (f_2^{e_2} \tilde{m_1} - f_1^{e_1} \tilde{m_2}) = 0, N \gg 0$$ in $M$.
The assumption that $f_1$ and $f_2$ generate the unit ideal is expressed by $af_1+bf_2=1$. By replacing $f_i$ with as high a power of $f_i$ as necessary, we may assume without loss of generality that $e_1=e_2=N=1$; it is a standard trick that the Bezout equation still holds.
Let $m = a \tilde {m_1} + b \tilde {m_2}$. This definition is motivated by what it should be if $\tilde{m_i} = f_i m$.
So we wish to show that $$m = m_1 = \frac{\tilde{m_1}}{f_1} \in M[f_1^{-1}],$$ i.e., $$f_1^N(f_1m-\tilde{m_1}) = 0$$ for sufficiently large $N$. Substituting the definition of $m$ back in and simplifying using the Bezout equation gives $$f_1^N(-b f_2 \tilde{m_1} + bf_1 \tilde{m_2})=0.$$ I know from the above that $f_2 \tilde{m_1}-f_1 \tilde{m_2}$ is killed by $f_1f_2$, but I don't know that it's killed by a high power of $f_1$.
This appears to be the approach outlined in the solution. What am I missing?