d: fixup bug with lists