scratch: add missing local to variable initialization