Duplicate bar bugfix.

Sometimes a bar wouldn't go away.  It seems there are occasions when
two bars exist on the document.  This code should guarantee one bar.