fix filter in batch bug