Fix language settings and new document tab settings