fixing currentLang flag