diff --git a/src/cutecoin/core/community.py b/src/cutecoin/core/community.py
index 5325475dca7900669844d6ef0b332dee06605354..5829f4fd13ee2bf53a0e437c9e868cd60bd84e91 100644
--- a/src/cutecoin/core/community.py
+++ b/src/cutecoin/core/community.py
@@ -466,7 +466,7 @@ class Community(QObject):
         if not ok:
             raise value_error
 
-        if tries == len(self.nodes):
+        if tries == len(nodes):
             raise NoPeerAvailable(self.currency, len(nodes))
 
     def jsonify(self):
diff --git a/src/cutecoin/core/net/network.py b/src/cutecoin/core/net/network.py
index b33dd0976f30b71eff3055572220fdb42b77d2c7..3154aa8b28b1fc979fec2e203a2bd62ec43ad877 100644
--- a/src/cutecoin/core/net/network.py
+++ b/src/cutecoin/core/net/network.py
@@ -241,7 +241,7 @@ class Network(Watcher):
         if node.state in (Node.ONLINE, Node.DESYNCED):
             node.check_sync(self.latest_block)
         logging.debug("{0} -> {1}".format(self.latest_block, self.latest_block))
-        if self._block_found != self.latest_block:
+        if self._block_found < self.latest_block:
             logging.debug("New block found : {0}".format(self.latest_block))
             self.new_block_mined.emit(self.latest_block)