Fix delete_checkpoint (uninitialised variable and generally odd)