fixed smex errors on emacs 23