According to the account of Ibn al-Qalanisi (followed by Ibn al-Athir), however, al-As'am was still active when the new Fatimid caliph, al-Aziz Billah, took the field in person and defeated the allies in summer 978.