Fixing issue with inserting one document, when we only want to insert the values