fix goroutines connection