bugfix
amount formula woks