Fixed linkning new set in list and deleting set on error