Fixed adding resources to map

Now the map doesn't break! For #88