diff --git a/webapp/views.py b/webapp/views.py
index 3e75cce0b90df0120fca61fe11bafe1ac82e0512..ad29f413152fcc3370ec16283f199411878acd82 100755
--- a/webapp/views.py
+++ b/webapp/views.py
@@ -81,7 +81,7 @@ def trip(request):
                                                                         arrival_time=f["arrival_time"],
                                                                         airline=f["airline"])
             for c in comp:
-                compSet.add(c.user.name)
+                compSet.add(c.user.email)
             f["companion"] = list(compSet)
             f["depart_time"] = f["depart_time"].strftime("%Y-%m-%d %H:%M")
             f["arrival_time"] = f["arrival_time"].strftime("%Y-%m-%d %H:%M")