Very remote chance. If it's Gateway -> API then TWS isn't part of the equation.
You don't get it, do you. What you *think* should happen? What logic might really, truly, *dictate* should happen? Doesn't matter a whit when IB screws up a distribution. You've either seen that happen, or you will see it happen. Either way, your trading won't care about your logic, only that your platform works. Good luck.