fix in batching