Then drop the treats to the side so your dog looks away.
Then clip your dog's leash and walk them out.
When your dog is at a safe distance, reward your dog excitedly by praising enthusiastically and throwing a ball (a "good chase") or playing with a tug toy.