Fixed a segfaukt related to maps
Fixed the actual problem