He finally gained a chance to increase the disagreements between Nizam al-Mulk and the Sultan. Although both Nizam al-Mulk and the Sultan were in agreement about the future Sultan, Barkiyaruq, Taj al-Mulk supported Mahmoud, the child of Terkan Khatun.