Fix Mongo deprecated warning