minor fix at TypedElementIndex