bug calling checkpoint