fix issues with emacs daemon