restore getter/setter for map (only needed for testing).