Scripting weird problem

I have to MK , two RB951-2n

I write the same command on a script and only applies to the first RB
"/ip ipsec policy set 0 sa-src-address=4.1.17.10 "

on the other 951 , it never run’s…

but when I write this command on terminal everything is ok.
both are running v5.22 …

what’s wrong??

I added on top of my script
/ip ipsec policy print
/ip ipsec peer print

and now everything works great.

the Set 0 command didn’t know where to update before the settings where print out