Fix an issue caused by the order of setting 'window.ENV' in
'index.html'.