Moved shift to local variable
Simulation shows as non-modal