Fixing transactions from / to raw