fixed a too many goroutines leak