failure handling on language detection