fix waitgroup negative