clear transaction written, but not saving correctly