fix node and browser