fix for allocating unallacted funds from a transaction