fix checkpoints