fix the case with empty language list