fix auto language detection