Fix getPrimaryLanguage calls