Fixed a bug with destroy which showed up when running a batch operation.