 Li Jinzhong then started a mutiny at Datong's capital Yun Prefecture (雲州), arresting Duan and his assistant Liu Hanzhang (柳漢璋).Li Keyong soon arrived, executed Duan and four of his subordinates, and claimed the title of defender of Datong.He sought imperial commission, but then-ruling Emperor Xizong refused.