prevent MongoError exceptions