fix bug for mongo_interface.py