Once Sima Ying arrived in Luoyang, he found the troops of his ally Sima Yong there, commanded by Zhang Fang. Instead of continuing to support Sima Ying, however, Sima Yong turned his back on Sima Ying and had him removed from his crown prince position, instead creating another brother of Emperor Hui, Sima Chi the Prince of Yuzhang, crown prince. Sima Ying was demoted back to being the Prince of Chengdu. Soon, Zhang forced Emperor Hui, Crown Prince Chi, and Sima Ying to move from Luoyang to Chang'an, safely under Sima Yong's control.