 There, Habib encountered Musa ibn Abi Khalid, an Umayyad captain who had bravely stayed behind in the vicinity of Tlemcen gathering what loyal forces he could find.The state of panic and confusion was such that Habib ibn Abi Obeida decided to blame the guiltless captain for the entire mess and cut off one of his hands and one of his legs in punishment.Habib ibn Abi Obeida entrenched what remained of the Ifriqiyan army in the vicinity of Tlemcen (perhaps as far back as Tahert), and called upon Kairouan for reinforcements.