replace next pointer zeroing to another position

otherwise, if the entry is already inside the list this would lead to a
break inside the list.