Fix missing var declaration
Merge pull request #552 from moradology/feature/fix-amcalc

Fix missing var declaration