fixing issue when language list is empty