diff --git a/includes/locale.inc b/includes/locale.inc
index 578b1b3..3fe8122 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1905,7 +1905,7 @@ function _locale_rebuild_js($langcode = NULL) {
     file_prepare_directory($dir, FILE_CREATE_DIRECTORY);

     // Save the file.
-    if (file_unmanaged_save_data($data, $dest)) {
+    if (file_unmanaged_save_data($data, $dest, FILE_EXISTS_REPLACE)) {
       $language->javascript = $data_hash;
       // If we deleted a previous version of the file and we replace it with a
       // new one we have an update.
