fixed some color_var bugs