diff --git a/theme/theme.inc b/theme/theme.inc
index 5efcc1f..efc7b10 100644
--- a/theme/theme.inc
+++ b/theme/theme.inc
@@ -34,7 +34,7 @@ function relation_select_preprocess_views_view_relation_select(&$variables){
     }else{
       $entity_id = $result[$num]->{$view->query->base_field};
       $entity_type = relation_select_entity_get_type_from_view($view);
-      $entity = entity_load($entity_type, array($entity_id));
+      $entity = reset(entity_load($entity_type, array($entity_id)));
     }
     $bundle = relation_select_entity_get_bundle($entity_type, $entity);
     $variables['row_entity'][$num] = array(
