fix coloring and color_ptr.