batch apache fix