fixes language detection