Fix to a bug in reference handling during DDI-import
.