fixed transaction reversal issues