Fix a bug of the method 'openMenu'. #10