Fixing the context of ops called from `data.batch()`