fix race condition in map