Fixed the language recognition in the server