Fixed checkpoint condition issue.