diff --git a/realname_content_profile.inc b/realname_content_profile.inc
index 5bd02e4..6b032b7 100644
--- a/realname_content_profile.inc
+++ b/realname_content_profile.inc
@@ -50,13 +50,10 @@ function realname_content_profile_get_types() {
 
 function realname_content_profile_get_fields($current, $type) {
   $fields = $links = array();
-  $all_fields = content_fields(NULL, $type);
+  $info = _content_type_info();
+  $all_fields = $info['content types'][$type]['fields'];
   if ($all_fields) {
     foreach ($all_fields as $field_name => $field_attributes) {
-      // If it's not they type we are looking for, then skip the field.
-      if ($field_attributes['type_name'] != $type) {
-        continue;
-      }
       switch ($field_attributes['type']) {
         case 'text':
           if ($field_attributes['multiple']) {
