fix selling not giving correct amount of money