diff --git a/dta.zip b/dta.zip
index 840af4a2a33cfae58b241c960ee6ba08becfd71a..518b55068e577eaa52d8c3800486db8b3ffacef4 100644
Binary files a/dta.zip and b/dta.zip differ
diff --git a/dta/utils/view.php b/dta/utils/view.php
index 35e79343e8ef134a1ecf4c9ac8529aea6f9c5987..4b756a385e04ce5c3c513bc93c6546d1df3d7528 100644
--- a/dta/utils/view.php
+++ b/dta/utils/view.php
@@ -56,7 +56,7 @@ class ViewSubmissionUtils {
             $html .= $summary->unknownCount() . get_string("unknown_state", self::COMPONENT_NAME) . "<br>";
         }
 
-        $html .= $summary->successfulTestCompetencyProfile . get_string("success_competencies", self::COMPONENT_NAME) . "<br>";
+        $html .= get_string("success_competencies", self::COMPONENT_NAME) . $summary->successfulTestCompetencyProfile . "<br>";
 
         return html_writer::div($html, "dtaSubmissionSummary");
     }
@@ -207,6 +207,7 @@ class ViewSubmissionUtils {
         
         $showncompetencies = explode(";", $summary->successfultestcompetencies);
         $overallcompetencies = explode(";", $summary->overalltestcompetencies);
+        
         $index=1;
         foreach ($overallcompetencies as $comp) {
             // If the competency was actually assessed by the assignment and tests, add a row in the table.
@@ -218,8 +219,8 @@ class ViewSubmissionUtils {
                 
                 $tmp = "";
                 $tmp .= html_writer::tag("td", 
-                    floatval($showncompetencies[index])/floatval ($comp) . "% 
-                    (" . $showncompetencies[index] . " / " . $comp . ")",
+                    floatval($showncompetencies[$index])/floatval ($comp) . "% 
+                    (" . $showncompetencies[$index] . " / " . $comp . ")",
                     $resultrowattributes);
                 
                 $body .= html_writer::tag("tr", $tmp, $resultrowattributes);