detector: use copy, since precise g++ doesn't have std::map::emplace() method yet