fix flashing menubar