Fix language detection.