Fixed crash for map.