Script syntax error although error was fixed

I have an automation that handles the alarm automatically.
Geofencing is working OK and the alarm runs the automations and scripts fine.
When I run the service ‘alarm_control_panel.alarm_arm_away’, I get an error:
service ‘alarm_control_panel.alarm_arm’ does not exist.
Long time ago I had an automation that this code by mistake (the ‘_away’ was missing ).
It was fixed but ever since from time to time, I get this error so the script stops running.
It also happens when the ‘alarm_control_panel.alarm_arm_home’ is executed.

I tried lots of things but nothing helps.

Any idea?