Better handling of unknown references.