fixed checkpoint problem