fix batch template