Menu bar repaint fix