fixed a bug of color setting