Fix Unlink behavior with more than once input

Obvious bug I should have tested better.