fixed bugs in disconnectWord;