fix bug in mongo_cmd_authenticate