fixed Emacs for Mac errors