fix hang problem in emacs