Fix skip calculation when batching is enabled.