I was accessing the map incorrectly