fix bug: isWin error