final mistake scan

Found an error or two in variable usage.,