fixing seg fault when deleting an unvalidable list