Fixing errors with unresolved references.