Mongodb fix

Fixed 2 small issues according to mongodb driver documentation & implementation