However, the army was hopeless in battle against the western forces, particularly against the young Mahmud of Ghazni. In what year was Jaipal again soundly defeated by the Muslims?