there is no problem, you just expressed the same number in two different ways or repesantations, it's just like you say $\frac{1}{2}=\frac{2}{4}$, the more rigorous way to write $0.9999999...$ is $9 \lim_{n\to +\infty}\sum_{i=1}^{n}(\frac{1}{10})^i$
and we have:
$$9 \lim_{n\to +\infty}\sum_{i=1}^{n}(\frac{1}{10})^i=1 $$
there is no problem, you just expressed the same number in two different ways or repesantations, it's just like you say $\frac{1}{2}=\frac{2}{4}$, the more rigorous way to write $0.9999999...$ is $9 \lim_{n\to +\infty}\sum_{i=1}^{n}(\frac{1}{10})^i$ and we have: $$9 \lim_{n\to +\infty}\sum_{i=1}^{n}(\frac{1}{10})^i=1 $$