Fix a problem with dropped references.