Revert "Fix list_tail"

This reverts commit 0b37dc8bc8b755a296eacf30f5b3cabe53a3b815.