add workaround for race condition in underlying Mongo driver