Fixed error with GlobalWidget