Fix the error when #map doesn't exist