fix hex color string generation