2 Bugfixes for Emacs 24

2 Bugfixes for Emacs 24
Bugfix (error)
Bugfix (mode-line-format)
please test it