fix variable name within map