Doh! But of course you are correct.

Just shows how much I've forgotten about code I wrote a while ago..

Cheers