Fixed the coloring of distant nodes.