fix for checkpoints