fix a bug when receive output with color