IndexType could be null sometime