Fix befavior of the function kill-word-dwim