Fix bug in all modes but elisp