HSM fail to update by mode change

I am using a rule in rule machine so when I change the mode the HSM will update following the mode as next:

Then I change the mode to away and check the logs and looks to be triggering as expected:

but the HSM is actually NOT changed to "Arm Away" it just stays at "All disarmed":

image

Am I doing something wrong? any suggestion to fix it?