Fixed opening the select barrier UI causing a crash.

Oh, you are correct. I had converted it to a foreach loop while trying to eliminate the crash and had made that assumption then. In any case it is a used as a parameter incorrectly because only _type should actually be passed to the setup function.