fixed issues with mongo db d driver