fix the bug of setup_config