Make code_to_color work