fixing orphaned reference