fixed multilanguage detection