Oh huh, you're right.
I'll fix it when I get a minute (probably at the weekend), looks like a pretty straightforward correction.
It works well now, thanks !