Fixed opening the select barrier UI causing a crash.

_index was not defined