diff --git a/module/execution/ui/taskkanban.html.php b/module/execution/ui/taskkanban.html.php
index cf08889026..2d9dd20652 100644
--- a/module/execution/ui/taskkanban.html.php
+++ b/module/execution/ui/taskkanban.html.php
@@ -44,7 +44,7 @@ foreach($kanbanGroup as $index => $group)
$kanbanGroup[$index] = $group;
}
-$laneCount += count($kanbanGroup);
+if(!empty($kanbanGroup)) $laneCount += count($kanbanGroup);
$checkObject = new stdclass();
$checkObject->execution = $executionID;