Fix undefined variable in for's (browser update to strict mode?)
Fix null flags in v3