fix bug connect after setup a new config file