Router stuck when I ping from a close interface??

Hello ,
I have RB411 with V6.35
when I try to ping from a inactive interface it get stuck
so if I try to write a script that send me something when the sim is not connected I get no replay

the command is simple
:if ([ping interface=SIM1 address=8.8.8.8 count=3] = 0) do={:log warning “No Ping!” } else={:log warning “Ping OK”}

the RB is stuck
no replay , no nothing
Thanks ,