fix race condition when importing maps