Fix a bug in import page running in Firefox.