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
The problem is not on that piece of code, it's somewhere else