Correct retrieval of std::map as a reference

Still doesn't seem to work for whatever reason, I'll try to figure it out later