Fixed overflow bug in dialog's widget.