fix incorrect tab highlighting for menu bar