Fixing missing var declarations.