Fixed a bug in the Checkpoint system