Fixed 0 index coloring problem