The troops that Demetrius had dismissed gathered to fight against Demetrius and routed him, so he fled.