Fixed a bug that prevented widgets from working in Safari