Fix bug in language identification