Are you looking/staring at the dogs? That's taken as a challenge by some breeds. I usually keep them in the corner of my but otherwise try to appear as if I'm ignoring them.

"No, bad dog" only works if you're the owner/master. But talking to them in a friendly voice works quite well with some dogs.
_________________________
Better is the Enemy of Good Enough.
Okay, what’s your point??