fixed mongo plugin