This fixes it being reset to 0 after an immediate order and not being set before dispatching (which may use it).