Fix prepare widget.