Fixed adding resources to map

Now the map doesn't break!