Fixed a bug from changing to ArrayList.

Selecting a robot would cause an error.