fixed the loss of money when buying items