Fix index equality checking -