Fix internal references.