fix tx rejected - invalid amount
fix corner case nil reference panic