Fix bug causing the scratch buffer to be in org-mode.