Fix a bug batched_expiration_maintenance