Fixed Widget Deprecation bug