fixing invalid color code