Correctly process references.