Fix a bug that 'process' in undefined in Firefox.