Nested Map and Structure not adding value in the lowest level of the 'tree'

I’m indeed using structs as values in the map, and if it’s flawed in some way, I can see why this isn’t working properly.
I found a workaround for my case though. I’m just using a simple map with integers as values and after finding one with a key using that integer to set a struct in another array.