diff --git a/lib/ui/modal/modal.js b/lib/ui/modal/modal.js
index <HASH>..<HASH> 100644
--- a/lib/ui/modal/modal.js
+++ b/lib/ui/modal/modal.js
@@ -237,15 +237,17 @@
 
     proto.hide = function() {
 
+      var self = this;
+
       var deferred = $q.defer();
 
       this.templatePromise.then(function() {
 
-        this.$element.one('hidden.bs.modal', function() {
+        self.$element.one('hidden.bs.modal', function() {
           deferred.resolve(true);
         });
 
-        this.$element.modal('hide');
+        self.$element.modal('hide');
 
       });
changed hide to reference self instead of this.