write concern fix for mongodb