fix race condition of map init when deployed