diff --git a/public/javascripts/user.js b/public/javascripts/user.js
index <HASH>..<HASH> 100644
--- a/public/javascripts/user.js
+++ b/public/javascripts/user.js
@@ -63,7 +63,9 @@ $(document).ready(function() {
                     success: function(data) {
                         refill.html(data);
                         // On successful update, update the original env id and disable save button
-                        env_select.env_changed_callback(env_select.get_selected_env());
+                        if(env.env_changed_callback) {
+                            env_select.env_changed_callback(env_select.get_selected_env());
+                        }
                     }
                 });
             }
fenced env_select.env_changed_callback when creating new user and choosing default org