fix bugs in duel