fixed sell bug