fixed send to shell hook in shell-mode