diff --git a/src/dgraph/pool.cpp b/src/dgraph/pool.cpp
index b25d28d44290d2a390547c31d668722454ddeb66..00bc4b0d7ae6352165783f679508a39bf2fdc037 100644
--- a/src/dgraph/pool.cpp
+++ b/src/dgraph/pool.cpp
@@ -60,7 +60,7 @@ PoolStorage::
   dgDEBUGIN(15);
 
   for( Entities::iterator iter=entityMap.begin (); iter!=entityMap.end ();
-       iter=entityMap.begin ())
+       iter++)
     {
       dgDEBUG(15) << "Delete \""
 		   << (iter->first) <<"\""<<std::endl;