fix orderly clash on index with different grouped elements