Improved consistency between orders and transactions