fix selection for files with multiple languages