diff --git a/postprocessing.py b/postprocessing.py
index bc2cf50046bc71a8e9054cd7facbc528509a65e7..26497352c8f885b6beebc7de3d0aff84a4e79216 100644
--- a/postprocessing.py
+++ b/postprocessing.py
@@ -96,11 +96,11 @@ def extractInstanceChannels(postprocessedPredInstance, postprocessedGTInstance,
 
     tubuliInstanceChannel = postprocessedPredInstance.copy()
     tubuliInstanceChannel[tubuliInstanceChannel < tubuliInstanceID_StartsWith] = 0
-    tubuliInstanceChannel -= (tubuliInstanceID_StartsWith-1)
+    tubuliInstanceChannel[tubuliInstanceChannel>0] -= (tubuliInstanceID_StartsWith-1)
 
     tubuliInstanceChannelGT = postprocessedGTInstance.copy()
     tubuliInstanceChannelGT[tubuliInstanceChannelGT < tubuliInstanceID_StartsWith] = 0
-    tubuliInstanceChannelGT -= (tubuliInstanceID_StartsWith-1)
+    tubuliInstanceChannelGT[tubuliInstanceChannelGT>0] -= (tubuliInstanceID_StartsWith-1)
 
     return [tubuliInstanceChannel, labeledGlom, labeledTuft, labeledVeins, labeledArtery, labeledArteryLumen], [tubuliInstanceChannelGT, labeledGlomGT, labeledTuftGT, labeledVeinsGT, labeledArteryGT, labeledArteryLumenGT]