Don't clean anything if v is already empty.
Comment out incorrect assert.
Remove debugging calls.