Fixed OOB error in the MenuBar