Let's say your wife only speaks Romanian and you don't speak a word of it. Let's say you are incontinent and every time you piss yourself your wife smacks you right in the nut sack. You can't help your behavior but she continues to do this to try and fix your behavior and you have no way of communicating to her that you have an actual, physical problem.
Same thing you are doing to your dog. Behavioral or physical, the dog does not understand smacking. Raise your voice a little, don't make physical contact when making corrections. You're only hurting the situation, not helping it.