fix buy + sell bug only working for first click