decrement rules_index if we encounter duplicate chains