diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py
index 19c71e9672fef6e69dfc69f6dc2dcc2de5d00bf5..845b64bb4c76c70ecea96eb333886823553fbe06 100644
--- a/src/cutecoin/core/net/node.py
+++ b/src/cutecoin/core/net/node.py
@@ -302,7 +302,8 @@ class Node(QObject):
                 except ValueError as e:
                     if '404' in str(e):
                         self.main_chain_previous_block = None
-                    logging.debug("Error in block reply")
+                    logging.debug("Error in previous block reply :  {0}".format(self.pubkey))
+                    logging.debug(str(e))
                     self.changed.emit()
                 except ClientError:
                     logging.debug("Client error : {0}".format(self.pubkey))
@@ -319,7 +320,8 @@ class Node(QObject):
             if '404' in str(e):
                 self.main_chain_previous_block = None
                 self.set_block(None)
-            logging.debug("Error in block reply")
+            logging.debug("Error in block reply :  {0}".format(self.pubkey))
+            logging.debug(str(e))
             self.changed.emit()
         except ClientError:
             logging.debug("Client error : {0}".format(self.pubkey))
diff --git a/src/cutecoin/gui/identities_tab.py b/src/cutecoin/gui/identities_tab.py
index 587b71286f578b6133d8fe2b46155ca724d0bb70..c54fe9bc26366eeebc1c1a947fd30b9fee58f81d 100644
--- a/src/cutecoin/gui/identities_tab.py
+++ b/src/cutecoin/gui/identities_tab.py
@@ -163,10 +163,6 @@ class IdentitiesTabWidget(QWidget, Ui_IdentitiesTab):
     @asyncify
     @asyncio.coroutine
     def send_money_to_identity(self, identity):
-        if isinstance(identity, str):
-            pubkey = identity
-        else:
-            pubkey = identity.pubkey
         result = yield from TransferMoneyDialog.send_money_to_identity(self.app, self.account, self.password_asker,
                                                             self.community, identity)
         if result == QDialog.Accepted: