diff --git a/core/src/main/java/com/orientechnologies/orient/core/fetch/OFetchHelper.java b/core/src/main/java/com/orientechnologies/orient/core/fetch/OFetchHelper.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/com/orientechnologies/orient/core/fetch/OFetchHelper.java
+++ b/core/src/main/java/com/orientechnologies/orient/core/fetch/OFetchHelper.java
@@ -68,7 +68,7 @@ public class OFetchHelper {
 

 		Object fieldValue;

 		Integer depthLevel;

-		final Integer anyFieldDepthLevel = iFetchPlan != null ? iFetchPlan.get(ANY_FIELD) : -1;

+		final Integer anyFieldDepthLevel = iFetchPlan != null ? iFetchPlan.get(ANY_FIELD) : Integer.valueOf(-1);

 		try {

 			// BROWSE ALL THE DOCUMENT'S FIELDS

 			for (String fieldName : iRootRecord.fieldNames()) {
Patch by Luca Molino for the issue <I> and <I>