Remove unnecessary use of sync.WaitGroup
Fix http API response bug