Fix an issue preventing the widget from being created on certain devices.