Bugfix: Improved sanity checks on amount in transactions