Fix "browser is undefined"