Update checkpoints.cpp

Fix syntax error