fixes 0 amount bug