Fix blocking goroutine error