Fix bug introduced by commit AA2FF2B

Correction is to not use uninitialized amount