fix bug that delete-selection-mode dose not active properly