diff -Naur a/tree.c b/tree.c
--- a/tree.c	2013-09-09 13:52:38.000000000 +0530
+++ b/tree.c	2013-09-09 13:57:25.000000000 +0530
@@ -9780,7 +9780,8 @@
 	    if (clone->parent != NULL)
 		clone->parent->last = clone;
 	    clone = clone->parent;
-	    parentClone = clone->parent;
+	    if (clone->parent != NULL)
+	    	parentClone = clone->parent;
 	    /*
 	    * Process parent --> next;
 	    */
