fixed two potential crashes in the language files