fix colorcode attribute