bugs accessing mongodb