fixed update amount bug.