diff --git a/plasmoid/package/contents/ui/task/TaskItem.qml b/plasmoid/package/contents/ui/task/TaskItem.qml
index 76a0ff580..694345836 100644
--- a/plasmoid/package/contents/ui/task/TaskItem.qml
+++ b/plasmoid/package/contents/ui/task/TaskItem.qml
@@ -721,8 +721,8 @@ AbilityItem.BasicItem {
             // a PID to an audio stream window. Otherwise if you have two instances of
             // an application, one playing and the other not, it will look up appName
             // for the non-playing instance and erroneously show an indicator on both.
-            if (!pa.hasPidMatch(task.appName)) {
-                streams = pa.streamsForAppName(task.appName);
+            if (!pa.hasPidMatch(taskItem.appName)) {
+                streams = pa.streamsForAppName(taskItem.appName);
             }
         }