fix buf mongo connection