Fixed a bug in createrawtransaction