Fix bug introduced by commit AA2FF2B
Correction is to not use uninitialized amount
Merge pull request #295 from thdox/fix-regression-from-aa2ff2b

Fix bug introduced by commit AA2FF2B