diff --git a/realname.module b/realname.module
index fd41513..2ed2a1d 100644
--- a/realname.module
+++ b/realname.module
@@ -841,7 +841,8 @@ function _realname_make_name(&$account) {
       $private_field = isset($account->{$private}) ? $account->{$private} : FALSE;
       if (isset($account->$name) && !empty($account->$name) && !$private_field) {
         if (is_array($account->$name)) {
-          $stuff['%' . $i] = $account->{$name}[0]['view'];
+          // Prefer the sanitized 'view' to 'value'.
+          $stuff['%' . $i] = isset($account->{$name}[0]['view']) ? $account->{$name}[0]['view'] : $account->{$name}[0]['value'];
         }
         else {
           $stuff['%' . $i] = $account->$name;
