Fix bug when the map file doesn't exist.