fixed dupid issue
fixed ledger sorting after spend