Fixed a bug related to the anomaly in applying cpd through color bar. There shouldn't be any more problems with color manipulation.