Fix issue: 2 rows are added to the list for each input

fixes #4