error correction in drive_grid, zero globals