Originally created by Marcin Erdmann. Users have reported reusing that value and it is surprising to them that it gets modified. Simply create a copy of the map before modifying it.