Bugfix: invalid access to run_task

Change-Id: I9bb197c7b2dc7630cd85da8cedfdb8691990b491
diff --git a/package.json b/package.json
index 7f30ec4..1ec5d68 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "cord_workflow_controller",
-    "version": "0.4.0",
+    "version": "0.4.1",
     "description": "CORD Workflow Controller",
     "main": "src/server.js",
     "scripts": {
diff --git a/src/types/workflowrun.js b/src/types/workflowrun.js
index 4b0b6b0..8975490 100644
--- a/src/types/workflowrun.js
+++ b/src/types/workflowrun.js
@@ -118,7 +118,7 @@
         }
 
         updateTaskStatus(taskId, status) {
-            let runTask = this.runTasks[taskId].getStatus();
+            let runTask = this.runTasks[taskId];
             runTask.setStatus(status);
         }