fix buy/sell return value