fix write concern bug