checkpoint bug fix