fix generateDisplayField()