client: fixes color code issues introduced recently, refs #412, #502