Properly initialize local variables in backfill()