See below, the fact that it is happening as a result on an order state transition is exactly why it doesn't work as expected.