commit is missing when inserting document