added explicit creation of parent type in create index