fix buy and sell