@Gabe24018510d39f
You mention both Script and Action. So I'm confused. This sounds like an Action issue to me.
So, if a Script, please post the code in full.
If an Action, please post a screenshot with the offending step expanded and the window wide enough to view the recorded path.