fix format type of color