Small fix for struct indexing