Fix issue with checkpoint code not overwriting old checkpoints.