fixed purge error in mongo driver