Fix deleting transaction