Fixed wrong zsh/emacs behaviour