Fix crash when deleting items of lists with headers