fix a bug in install_emacs