Fixed (hopefully) checkpoint write error