Thank you for your reply Kana,
Indeed that might be it as everything seems to be working fine otherwise.
Yes I've added a wait stage but that did not seem to help preventing this behaviour.
I also noticed that if I run my main process, pause it and do a couple of step-overs and then resume it, this does not happen.