I need to improve the logic to not use the spend and unconfirmed UTXOs first before the unspent ones, for now just wait for a confirmation block, refresh the wallet balance and try again.