fix the error "Connection to server was unsuccessful"