Shouldn't this be map.getKey()?