Small bug fixed on get_range_states_for_ammap