rules: fix coloring edges