fixed 'checkpoint bug'