diff --git a/www/js/controllers/app-controllers.js b/www/js/controllers/app-controllers.js
index 2b4464c7e9d53971890e46b7cb4a1258bb417b2f..cc0b2452ac7ded0d39c23e6ce36f178e290fe129 100644
--- a/www/js/controllers/app-controllers.js
+++ b/www/js/controllers/app-controllers.js
@@ -19,7 +19,7 @@ angular.module('cesium.app.controllers', ['cesium.platform', 'cesium.services'])
         cache: false,
         url: "/lock",
         views: {
-          'menuContent': {
+          menuContent: {
             templateUrl: "templates/common/view_passcode.html",
             controller: 'PassCodeCtrl'
           }
@@ -421,7 +421,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $
           ), uri);
 
           // Redirect to an owned wallet
-          if (!action && (csWallet.isUserPubkey(res.pubkey) || csWallet.children.isUserPubkey(res.pubkey))) {
+          if (!action && (csWallet.isUserPubkey(res.pubkey) || csWallet.children.hasPubkey(res.pubkey))) {
             var wallet = csWallet.getByPubkey(res.pubkey);
             return $state.go('app.view_wallet_by_id', {id: wallet.id});
           }
diff --git a/www/plugins/es/js/services/http-services.js b/www/plugins/es/js/services/http-services.js
index 51b57ed7c3e5988393e80b1cccdca05c5db21bf0..0904111f31ec23b104b6d7c6f6219aef3e68d2a5 100644
--- a/www/plugins/es/js/services/http-services.js
+++ b/www/plugins/es/js/services/http-services.js
@@ -853,7 +853,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
     that.api.registerEvent('node', 'stop');
 
 
-    var exports = {
+    angular.merge(that, {
       getServer: csHttp.getServer,
       node: {
         summary: that.get('/node/summary'),
@@ -909,12 +909,10 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
         findObjectInTree: findObjectInTree
       },
       constants: constants
-    };
-    exports.constants.regexp = regexp;
-    angular.merge(that, exports);
+    });
+    that.constants.regexp = regexp;
   }
 
-
   // Default instance
   var service = new EsHttp(undefined, undefined, undefined, true);