transaction save fixes