diff --git a/cpmorphology.py b/cpmorphology.py
index <HASH>..<HASH> 100644
--- a/cpmorphology.py
+++ b/cpmorphology.py
@@ -3483,7 +3483,7 @@ def distance_color_labels(labels):
     # cumsum([0,0,1,0,1]) = [0,0,1,1,2]
     # and copy back into the color array, using the order.
     #
-    different = np.hstack([[rlabels[order[0] > 0]],
+    different = np.hstack([[rlabels[order[0]] > 0],
                            rlabels[order[1:]] != rlabels[order[:-1]]])
     # We need to careful about ravel() returning a new object, but in the usual
     # case of colors having order='C', this won't create any copies.
Fixed two errors that prevented editobjectsmanually from working