diff --git a/relation.module b/relation.module
index 85374a3..b7caff6 100644
--- a/relation.module
+++ b/relation.module
@@ -294,7 +294,7 @@ function relation_type_save($relation_type, $write_record_keys = array(), $rebui
  * Make sure the instance exists for this type.
  */
 function relation_type_ensure_instance($type) {
-  if (!drupal_static('relation_install') && !field_info_instance('relation', 'endpoints', $type)) {
+  if (!drupal_static('relation_install') && !field_read_instance('relation', 'endpoints', $type)) {
     $instance = array(
       'field_name' => 'endpoints',
       'entity_type' => 'relation',
