Fixed falsely updated amount bug.