I definitely agree with correcting it with either of the suggestions given here. My basset does the same and has since he was a pup. Unfortunately, I wasn't very knowledgeable at dog training and correcting behaviors when I first got him over 7 years ago.

It, also, wasn't a big issue for the past 4 years or so due to not having another dog for him to compete with, but now it's starting to become a problem again. Definitely would have been easier if I had just addressed it from the start!
Good luck!