Update checkpoints.cpp

fix checkpoints part 2