diff --git a/ckeditor.module b/ckeditor.module
index 7174acc..1dec0f4 100644
--- a/ckeditor.module
+++ b/ckeditor.module
@@ -926,19 +926,19 @@ function ckeditor_process_textarea($element) {
       }
     }
 
-    $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . $module_full_path . '/ckeditor.styles.js';
+    $query_string = '?' . substr(variable_get('css_js_query_string', '0'), 0, 1);
+    $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . $module_full_path . '/ckeditor.styles.js' . $query_string;
     if (!empty($conf['css_style'])) {
       if ($conf['css_style'] == 'theme' && file_exists($themepath . 'ckeditor.styles.js')) {
-        $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . $host . $themepath . 'ckeditor.styles.js';
+        $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . $host . $themepath . 'ckeditor.styles.js' . $query_string;
       }
       elseif (!empty($conf['css_style']) && $conf['css_style'] == 'self') {
         $conf['styles_path'] = str_replace("%h%t", "%t", $conf['styles_path']);
-        $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . str_replace(array('%h', '%t', '%m'), array($host, $host . $themepath, $module_drupal_path), $conf['styles_path']);
+        $settings[$textarea_id]['stylesCombo_stylesSet'] = "drupal:" . str_replace(array('%h', '%t', '%m'), array($host, $host . $themepath, $module_drupal_path), $conf['styles_path']) . $query_string;
       }
     }
     // add custom stylesheet if configured
     // lets hope it exists but we'll leave that to the site admin
-    $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
     $css_files = array();
     switch ($conf['css_mode']) {
       case 'theme':
