prepare-commit writing was fixed