fix getCurrentLanguage method