transaction fixes