Fix bug with using input address instead of change address when creating transaction.