[![enter image description here](https://i.stack.imgur.com/IlnuO.png)](https://i.stack.imgur.com/IlnuO.png)

Why am I getting here a measurement outcome of $00$? I measure after the first $X$ gate in a separate output bit `c[1]` which should result in a $1$ and I measure again after a second $X$ gate in a separate output bit `c[0]` which should result in a $0$, so $10$ in total. Why do I get the output $00$ as if both measurements are performed after the whole circuit? And how can I do intermediate measurements as expected?