fixed bugs for when the map is empty maybe