Hi,
It's likely your logic that reset the variable. The action in itself doesn't reset it, it only set it, and then fire an event. I would double check on a simple Fsm to validate that action first and then move it into your more complex logic.
Bye,
Jean