Removed warning and an empty class from widget.