Fix batch deleting only deleting half of the models.