Temp fix for Firefox (Error: ReferenceError: widget is not defined)