index out of bounds in CollectionEditor