fix menubar problem on Mac OS