fixed checkpoint error