Fixes issue in bookmarklet