added bug fix in color name indexing