fix logic for indexable