Get rid of lingering references.