fix bugs of color dir.