Fix IDL reference was not opened for structs