Fixed language detection