Found Bug

Found a bug, that broke program if two items are in the same list. Need
to fix commented section.