bug in checkpoint save