fixed breakage on more recent versions of chromium