Fixed another bug in checkpoint system.