Fix crash when changing language through language menu