The giving of a military command to Wang Yu oddly drew a reaction from Wang Gong and Yin—as Wang Yu's command included four commanderies originally under the command of Yu Kai (庾楷), who became angry and managed to persuade Wang Gong and Yin that Sima Daozi's intention was to act against them as well. They therefore rose again, but Sima Daozi was able to persuade Wang Gong's general Liu Laozhi (劉牢之), who was in command of the elite Beifu Forces (北府兵), to suddenly turn against Wang Gong, capturing and executing him. Yin, hearing of Wang Gong's death, was in fear but considered proceeding anyway—and Sima Daozi, under suggestion by Huan Xuan's cousin Huan Xiu (桓脩), managed to cause dissension between Yin and his generals Huan Xuan and Yang Quanqi (楊佺期) by offering Huan and Yang key posts; although Huan and Yang nominally remained Yin's allies, Yin was forced to withdraw his troops, and from that point on no longer posed a major threat, as his domain had now been divided into three, with Huan and Yang each given a third.