diff --git a/modules/color/color.module b/modules/color/color.module
index 58b2c925de2408b83cfde5ae539acf3d8bdc4b06..dfdbce101b06efa2c19aa49a048cb34ce0743fef 100644
--- a/modules/color/color.module
+++ b/modules/color/color.module
@@ -211,12 +211,13 @@ function color_scheme_form_submit($form_id, $values) {
   // Prepare target locations for generated files
   $id = $theme .'-'. substr(md5(serialize($palette) . microtime()), 0, 8);
   $paths['color'] = variable_get('file_directory_path', 'files') .'/color';
-  $paths['target'] = $paths['color'] .'/'. $id .'/';
+  $paths['target'] = $paths['color'] .'/'. $id;
   foreach ($paths as $path) {
     if (!is_dir($path)) {
       mkdir($path);
     }
   }
+  $paths['target'] = $paths['target'] .'/';
   $paths['id'] = $id;
   $paths['source'] = drupal_get_path('theme', $theme) .'/';
   $paths['stylesheet'] = $paths['target'] .'style.css';