bugfix in current language detection