fix batching for Safari