diff --git a/core/src/main/java/com/orientechnologies/orient/core/sql/executor/DepthFirstTraverseStep.java b/core/src/main/java/com/orientechnologies/orient/core/sql/executor/DepthFirstTraverseStep.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/com/orientechnologies/orient/core/sql/executor/DepthFirstTraverseStep.java
+++ b/core/src/main/java/com/orientechnologies/orient/core/sql/executor/DepthFirstTraverseStep.java
@@ -128,7 +128,10 @@ public class DepthFirstTraverseStep extends AbstractTraverseStep {
     StringBuilder result = new StringBuilder();
     result.append(spaces);
     result.append("+ DEPTH-FIRST TRAVERSE \n");
+    result.append(spaces);
+    result.append("  " + projections.toString());
     if (whileClause != null) {
+      result.append("\n");
       result.append(spaces);
       result.append("WHILE " + whileClause.toString());
     }
Fix depth first traverse step pretty print