fixed duplication of list items

fixed the bug you found :)