Fixed problem with duplicates in todo list