Add missing variable def - thanks to Paul Hargrove for spotting.