The find function in a map does not return a reference, but rather a copy. Therefore, after you perform operations on this copy, you need to re-add it to the map, similar to this:
find