Mongo Exception fix