Fixed a bug in detecting the color file