Bug fix, the condition is for run in browser.