Fixed the parse logic for coloring.