fix batch application