bug fixed, color auto detect