Fix getLanguage problem