fixed constructor of MenuBar