fixed the match draw issue