Fix bugs with importer Ajax functions.