fixed menubar bug in Mac