fix a bug when dealing with symbolic colors