--- a/OSSEval/OpenSourceProject/templates/OSProject/detail.html
+++ b/OSSEval/OpenSourceProject/templates/OSProject/detail.html
@@ -16,7 +16,7 @@
     <ul>
 {% for i in analysis.instance_set.all %}
         <li>
-          <a id_instance="{{ i.id }}" href="#{{ i.actual_instance.name }}">{{ i.actual_instance.name }}</a>&nbsp;
+          <a id_instance="{{ i.id }}" href="#{{ i.id }}">{{ i.os_project.name }}</a>&nbsp;
           <a target="_blank" href="{% url 'OSProject_detail' i.id %}"><img src="{% static "images/i.png" %}"/></a>
         </li>
 {% empty %}
@@ -24,9 +24,9 @@
 {% endfor %}
     </ul>
 {% for i in analysis.instance_set.all %}
-    <div id="{{ i.actual_instance.name }}">
+    <div id="{{ i.id }}">
     <br>
-    {% for ospf in i.actual_instance.osprojectforge_set.all %}
+    {% for ospf in i.os_project.osprojectforge_set.all %}
          <a href="{% url 'OSProjectForge_delete' ospf.id analysis.id %}">
            <img src="{% static "images/delete.jpg" %}" />
          </a>