Fix bug with unexpected lazy loading of modules in browser.