Fix CompoundSelector bug when selecting from array