fixed IndexOutOfBoundsException when deleting a checkpoint