Fix defect in getting printer for map iterator