fixed bugs: Order of exec wait group