Fixes some broken references.