fixed bug where sorting and searching sentences by language would raise an exception when a fixed language was selected