fix buy amount bug