Quick fix

I know this is nasty, but it's a quick fix for the moment to stop the
error logs being filled up.

Er, you can't reference a variable without defining it first!