bugfix
modify codes to buy