Fix bug with deleting todos