fixed a monogdb related issue