Fixing problems with checkpoint deleting.