﻿diff --git misc/machine-name.js misc/machine-name.js
index 4c1ad83..f7afb98 100644
--- misc/machine-name.js
+++ misc/machine-name.js
@@ -76,9 +76,11 @@ Drupal.behaviors.machineName = {
         $source.bind('keyup.machineName change.machineName', function () {
           machine = self.transliterate($(this).val(), options);
           // Set the machine name to the transliterated value.
-          if (machine != options.replace && machine != '') {
-            $target.val(machine);
-            $preview.text(machine);
+          if (machine != '') {
+            if (machine != options.replace) {
+              $target.val(machine);
+              $preview.text(machine);
+            }
             $suffix.show();
           }
           else {
