fixed unknown amount bug.