Fixed bugs in menu widget.