fix the mongo plugin.