Use list_replace() instead of list_transfer()