fix bug 'dw' and 'dW' issue #346