diff --git a/core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreeRID.java b/core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreeRID.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreeRID.java
+++ b/core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreeRID.java
@@ -301,8 +301,10 @@ public class OMVRBTreeRID extends OMVRBTreePersistent<OIdentifiable, OIdentifiab
 

 	@Override

 	public int commitChanges() {

-		if (!((OMVRBTreeRIDProvider) getProvider()).isEmbeddedStreaming())

+		if (!((OMVRBTreeRIDProvider) getProvider()).isEmbeddedStreaming()){

+			saveAllNewEntries();

 			return super.commitChanges();

+		}

 		return 0;

 	}
Fixed bug on OMVRBTreeRID: sometimes add was lazy and in case of db close could be not saved on disk