fixed choosing of rootlevel language problem