Unset reference left over from foreach loop...

... 'Cause PHP is silly.