handles end of color set properly