fix: condition indexing