amount bug fix