Standard Data Directive not keeping variable value

Hello,

I have a weird issue going on with this BPM.

I set a global variable to store the customer num:

I then assign this variable a value in a code block:

var orderHeader = Db.OrderHed.Where( o => o.OrderNum == orderNumber).SingleOrDefault();

sourceSystem = orderHeader.sourceSystem_c;
customer = orderHeader.CustNum;
country = orderHeader.OTSCountryNum;

I can successfully see the correct customer number in the event log debug I write to in this code block. However when I add a new code block widget after this one and attempt to utilize this customer variable in a condition my debugging shows the customer variable has reverted to 0. Any idea why?

Never mind, it was due to some code blocks being set to async