correcting bad color code