corrected a map iter error in location state.