fixed bug that only one checkpoint was created